<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        .message_wrapper {
            padding: 20px 10px 0;
            padding-bottom: 60px; /* 为底部导航栏留出空间 */
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }
        .header h1 {
            font-size: 22px;
        }
        .header h1 span {
            font-size: 16px;
            margin-right: 8px;
        }
        .header_left {
            display: flex;
            align-items: flex-end;
        }
        .header_right {
            font-size: 14px;
        }
        .message_list {
            margin-top: 20px;
        }
        .message {
            display: flex;
            align-items: center;
        }
        .message_image {
            width: 50px;
            height: 50px;
            margin-right: 8px;
            padding-bottom: 10px;
        }
        .message_image img {
            width: 100%;
            height: 100%;
            border-radius: 8px;
        }
        .message_info {
            flex: 1;
            border-bottom: 1px solid rgba(147, 139, 139, 0.096);
            padding-bottom: 10px;
        }
        .message_info_top {
            margin-bottom: 8px;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
        }
        .message_info_top span:last-child {
            color: #ddd;
            font-size: 14px;
        }
        .message_info_bottom {
            color: rgb(164, 151, 151);
            font-size: 14px;
        }
        h2 {
            font-size: 16px;
            padding: 10px 0;
            font-weight: 500;
        }
        .list .item {
            display: flex;
            align-items: center;
            padding: 8px 0;
        }
        .list .item:last-child .item_info {
            border: none;
        }
        .item_image {
            position: relative;
            width: 50px;
            height: 50px;
            margin-right: 8px;
            padding-bottom: 16px;
            background: url('./img/avatar.png') no-repeat;
        }
        .item_image span {
            position: absolute;
            width: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            top: 0;
            right: 0;
            transform: translate(50%, -50%);
            height: 20px;
            border-radius: 50%;
            background: red;
        }
        .item_image img {
            width: 100%;
            height: 100%;
            border-radius: 8px;
        }
        .item:nth-child(1) .item_image {
            background-position: 0 -4px;
        }
        .item:nth-child(2) .item_image {
            background-position: 0 -75px;
        }
        .item:nth-child(3) .item_image {
            background-position: 0 -145px;
        }
        .item:nth-child(4) .item_image {
            background-position: 0 -215px;
        }
        .item:nth-child(5) .item_image {
            background-position: 0 -285px;
        }
        .item:nth-child(6) .item_image {
            background-position: 0 -357px;
        }
        .item:nth-child(7) .item_image {
            background-position: 0 -428px;
        }
        .item:nth-child(8) .item_image {
            background-position: 0 -500px;
        }
        .item_info {
            flex: 1;
            border-bottom: 1px solid rgba(147, 139, 139, 0.096);
            padding-bottom: 16px;
        }
        .item_info_top {
            margin-bottom: 8px;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
        }
        .item_info_top span:last-child {
            color: #ddd;
            font-size: 14px;
        }
        .item_info_bottom {
            color: rgb(164, 151, 151);
            font-size: 14px;
        }

        /* 底部导航栏样式 */
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            background-color: #fff;
            padding: 10px 0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }
        .footer li {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }
        .footer li i {
            font-size: 20px;
            color: #666;
        }
        .footer li p {
            margin-top: 5px;
            font-size: 12px;
            color: #666;
        }
        .footer li:hover i,
        .footer li:hover p {
            color: #ff6b6b; /* 悬停时的颜色 */
        }
    </style>
</head>
<body>
<div class="message_wrapper">
    <div class="header">
        <div class="header_left">
            <h1>
                消息
                <span>(23)</span>
            </h1>
<!--            <span>全部已读</span>-->
        </div>
        <div class="header_right">设置</div>
    </div>
    <div class="message_list">
        <div class="message">
            <div class="message_image">
                <img src="./img/message.png" alt="消息图片">
            </div>
            <div class="message_info">
                <div class="message_info_top">
                    <span>优惠福利</span>
                    <span>24/06/05</span>
                </div>
                <div class="message_info_bottom">美团外卖：信我！真的超划算</div>
            </div>
        </div>
    </div>
    <h2>2周前的消息</h2>
    <div class="list">
        <div class="item">
            <div class="item_image">
                <span>5</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>美团视频</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">签到即送领10元</div>
            </div>
        </div>
        <div class="item">
            <div class="item_image">
                <span>3</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>东北人家手工水饺福利粉丝群</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">[折扣榜]本店今日折扣商品来袭，赶快来</div>
            </div>
        </div>
        <div class="item">
            <div class="item_image">
                <span>2</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>美团币</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">你有一笔抵扣金待领取</div>
            </div>
        </div>
        <div class="item">
            <div class="item_image">
                <span>0</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>蒙古兄弟-碳烤肉烤鸡</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">亲爱的顾客，我们“不打烊”~推荐您使用</div>
            </div>
        </div>
        <div class="item">
            <div class="item_image">
                <span>7</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>订单动态</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">商品已送达</div>
            </div>
        </div>
        <div class="item">
            <div class="item_image">
                <span>2</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>美团钱包</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">您的准时包和放心吃保障已生效</div>
            </div>
        </div>
        <div class="item">
            <div class="item_image">
                <span>1</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>烧烤研究员 龙虾 海鲜（厦门集美..）</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">[邀您加入粉丝群]</div>
            </div>
        </div>
        <div class="item">
            <div class="item_image">
                <span>1</span>
            </div>
            <div class="item_info">
                <div class="item_info_top">
                    <span>美团乐园</span>
                    <span>昨天</span>
                </div>
                <div class="item_info_bottom">你有一笔现金待领取</div>
            </div>
        </div>
    </div>
</div>

<!-- 底部导航栏 -->
<ul class="footer" style="bottom: -16px;">
    <li onclick="location.href='index.html'">
        <i class="fa fa-home"></i>
        <p>首页</p>
    </li>
    <li onclick="location.href='Message.html'">
        <i class="fa fa-compass"></i>
        <p>消息</p>
    </li>
    <li onclick="location.href='orderList.html'">
        <i class="fa fa-file-text-o"></i>
        <p>订单</p>
    </li>
    <li onclick="location.href='Person.html'">
        <i class="fa fa-user-o"></i>
        <p>我的</p>
    </li>
</ul>
</body>
</html>